<template>
  <div class="home-page">
    <div class="container">
      <h1 class="title">新车价格查询系统</h1>
      <div class="button-container">
        <button class="nav-button" @click="goToQuery">价格查询</button>
        <button class="nav-button" @click="goToManage">信息管理</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeView',
  methods: {
    goToQuery() {
      this.$router.push('/query');
    },
    goToManage() {
      this.$router.push('/manage');
    }
  }
};
</script>

<style scoped>
.home-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 20px;
}

.container {
  text-align: center;
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}

.title {
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 32px;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-button {
  padding: 15px 30px;
  font-size: 20px;
  background-color: #42b983;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: #359c6d;
}
</style>